﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;



namespace Kcadastro
{
    public partial class monitor : System.Web.UI.Page
    {

        kcadDataContext db = new kcadDataContext(ConfigurationManager.ConnectionStrings["KcadConnectionString"].ToString());


        protected void Page_Load(object sender, EventArgs e)
        {
            carregar();
        }

        private void carregar()
        {
            var r = (from tb in db.tb_listaConsultas
                         orderby tb.PK_IDcons, tb.uf
                         select tb);
            rp_mon.DataSource = r;
            rp_mon.DataBind();


        }
    }
}